package com.ssyt.ec.exam.entity;

public class ExamRecordsEntity {
	private int id;
	private int userId;
	private int examPlanId;
	private int getPoint;
	private String submitTime;
	private String startTime;
	private int isPass;

	// 扩展属性
	private int qesExamPaper_totalPoint;
	private String qesExamPaper_name;

	private String sysUser_name;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getExamPlanId() {
		return examPlanId;
	}

	public void setExamPlanId(int examPlanId) {
		this.examPlanId = examPlanId;
	}

	public int getGetPoint() {
		return getPoint;
	}

	public void setGetPoint(int getPoint) {
		this.getPoint = getPoint;
	}

	public String getSubmitTime() {
		return submitTime;
	}

	public String getSubmitTimeFormat() {
		if (submitTime != null) {
			return submitTime.substring(0, submitTime.length() - 2);
		}
		return null;
	}

	public void setSubmitTime(String submitTime) {
		this.submitTime = submitTime;
	}

	public String getStartTime() {
		return startTime;
	}

	public String getStartTimeFormat() {
		if (startTime != null) {
			return startTime.substring(0, startTime.length() - 2);
		}
		return null;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public int getIsPass() {
		return isPass;
	}

	public String getIsPassStr() {
		if (isPass == 1) {
			return "通过";
		} else if (isPass == 2) {
			return "未通过";
		} else if (isPass == 3) {
			return "未提交或超时";
		} else {
			return "通过？";
		}
	}

	public void setIsPass(int isPass) {
		this.isPass = isPass;
	}

	public String getQesExamPaper_name() {
		return qesExamPaper_name;
	}

	public void setQesExamPaper_name(String qesExamPaper_name) {
		this.qesExamPaper_name = qesExamPaper_name;
	}

	public int getQesExamPaper_totalPoint() {
		return qesExamPaper_totalPoint;
	}

	public void setQesExamPaper_totalPoint(int qesExamPaper_totalPoint) {
		this.qesExamPaper_totalPoint = qesExamPaper_totalPoint;
	}

	public String getSysUser_name() {
		return sysUser_name;
	}

	public void setSysUser_name(String sysUser_name) {
		this.sysUser_name = sysUser_name;
	}
}
